import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from "./app.component";
import { HomeComponent } from "./home/home.component";

const routes: Routes = [
  {
    path: '',
    redirectTo: 'web/home',
    pathMatch: 'full'
  },
  {
    path: 'web/home',
    component: HomeComponent
  },
  {
    path: 'web/404',
    loadChildren: './404/page-not-found.module#PageNotFoundModule'
  },
  {
    path: '**',
    redirectTo: 'web/404'
  }
];

@NgModule({
  imports: [RouterModule.forRoot(
    routes,
    { enableTracing: true }
  )],
  exports: [RouterModule]
})
export class AppRoutes { }
